package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.entity.Product;
import com.example.mall.param.brands.FindByBrandsIdParam;
import com.example.mall.param.product.AddProductParam;
import com.example.mall.param.product.DeleteProductParam;
import com.example.mall.param.product.EditProductStatusParam;
import com.example.mall.param.product.ProductTypeParam;

import java.util.HashMap;
import java.util.List;

public interface ProductService extends IService<Product> {

    List<Product> allList();

    HashMap typeByProductList(ProductTypeParam param);

    Object deleteProduct(DeleteProductParam param);

    Object editProductStatus(EditProductStatusParam param);

    Integer addProduct(AddProductParam param);

    String findByBrandsId(FindByBrandsIdParam param);
}
